package com.wss.merchant.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wss.merchant.domain.CommonResult;
import com.wss.merchant.domain.DlNewShopOrderFirst;
import com.wss.merchant.service.DlNewShopOrderFirstService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 总订单表 前端控制器
 * </p>
 *
 * @author wss
 * @since 2021-03-09
 */
@Controller
@RequestMapping("/first")
public class DlNewShopOrderFirstController {
    @Autowired
    private DlNewShopOrderFirstService dlNewShopOrderFirstService;
    @RequestMapping("/getFirst")
    @ResponseBody
    public CommonResult addGrouper(@RequestBody Map<String,String> map){
        Page<Map> page = new Page<>(Integer.parseInt(map.get("current")),Integer.parseInt(map.get("size")));
        Page<Map> first = dlNewShopOrderFirstService.getFirst(page, map);
        return new CommonResult(200,"成功",first);
    }


}

